package com.cskaoyan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * URL路径映射
 */
@Controller
public class UrlMappingController {

    @RequestMapping({"hello1", "hello2", "index", "home"})
    @ResponseBody
    public String hello() {
        return "hello";
    }

    @RequestMapping({"goodbye*","goodbye/*"})
    @ResponseBody
    public String goodbye() {
        return "byebye";
    }
}
